class AddFotoYDatosPerfiles < ActiveRecord::Migration
  def self.up
    add_column :perfiles, :mostrar_avatar, :boolean
    add_column :perfiles, :mostrar_provincia, :boolean
    add_column :perfiles, :mostrar_email, :boolean
    add_column :perfiles, :mostrar_telefono, :boolean
    add_column :perfiles, :mostrar_gustos, :boolean
    add_column :perfiles, :mostrar_foto, :boolean
    add_column :perfiles, :mostrar_preferido, :boolean
    
    add_column :perfiles, :foto, :string
    add_column :perfiles, :gustos, :string
    add_column :perfiles, :nongustos, :string
    add_column :perfiles, :preferido, :integer
    
    add_column :usuarios, :quiero_ser_amigo, :boolean
    add_column :usuarios, :publico, :boolean
    add_column :usuarios, :privado, :boolean
  end

  def self.down
    remove_column :perfiles, :mostrar_avatar
    remove_column :perfiles, :mostrar_provincia
    remove_column :perfiles, :mostrar_email
    remove_column :perfiles, :mostrar_telefono
    remove_column :perfiles, :mostrar_gustos
    remove_column :perfiles, :mostrar_foto
    remove_column :perfiles, :mostrar_preferido

    remove_column :perfiles, :foto
    remove_column :perfiles, :gustos
    remove_column :perfiles, :nongustos
    remove_column :perfiles, :preferido

    remove_column :usuarios, :quiero_ser_amigo
    remove_column :usuarios, :publico
    remove_column :usuarios, :privado

  end
end
